package com.jingbian.cppccbackend.mapper.user;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.jingbian.cppccbackend.entity.Meetings;
import com.jingbian.cppccbackend.entity.dto.MeetingsNeedDTO;
import com.jingbian.cppccbackend.vo.MeetingDetailVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 会议表，用于存储会议基本信息 Mapper 接口
 * </p>
 *
 * @author pum
 * @since 2025-03-04
 */
@Mapper
public interface MeetingsMapper extends BaseMapper<Meetings> {

  List<Meetings> getNeedMeetings(@Param("params")MeetingsNeedDTO meetingsNeedDTO);

  List<Meetings> getNeedMeetings2(@Param("params")MeetingsNeedDTO meetingsNeedDTO);


  MeetingDetailVO getDeail(Integer mid, Integer userId);

  void setReason(Integer mid, String reason, Integer userId);

  void toSign(Integer userId, Integer mid);
}
